// vite.config.ts
import { defineConfig } from "file:///E:/tetrisv3/tetris-v3/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/tetrisv3/tetris-v3/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import AutoImport from "file:///E:/tetrisv3/tetris-v3/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/tetrisv3/tetris-v3/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///E:/tetrisv3/tetris-v3/node_modules/unplugin-vue-components/dist/resolvers.js";
import tailwindcss from "file:///E:/tetrisv3/tetris-v3/node_modules/tailwindcss/lib/index.js";
import autoprefixer from "file:///E:/tetrisv3/tetris-v3/node_modules/autoprefixer/lib/autoprefixer.js";
import { VitePWA } from "file:///E:/tetrisv3/tetris-v3/node_modules/vite-plugin-pwa/dist/index.js";
import viteCompression from "file:///E:/tetrisv3/tetris-v3/node_modules/vite-plugin-compression/dist/index.mjs";
import { createSvgIconsPlugin } from "file:///E:/tetrisv3/tetris-v3/node_modules/vite-plugin-svg-icons/dist/index.mjs";
var __vite_injected_original_dirname = "E:\\tetrisv3\\tetris-v3";
var vite_config_default = defineConfig({
  resolve: {
    extensions: [".vue", ".ts"],
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, ".", "src")
    }
  },
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    }),
    VitePWA({
      registerType: "autoUpdate",
      devOptions: {
        enabled: true,
        type: "module"
      },
      workbox: {
        runtimeCaching: [
          {
            urlPattern: /.*/,
            handler: "StaleWhileRevalidate"
          }
        ],
        maximumFileSizeToCacheInBytes: 4 * 1024 * 1024
        // 需要缓存的最大文件大小
      },
      manifest: {
        "name": "Tetris V3",
        "short_name": "Tetris V3",
        "description": "A Tetris game, running on the web, responsive and installable.",
        "display": "standalone",
        "theme_color": "#111",
        "start_url": "/",
        "icons": [
          {
            "src": "/icon.png",
            "type": "image/png",
            "sizes": "171x171"
          }
        ],
        "orientation": "any",
        "background_color": "#fff",
        "lang": "en",
        "categories": [
          "game"
        ],
        "screenshots": [
          {
            "src": "/sssample.jpg",
            "type": "image/jpg",
            "sizes": "414x736",
            "form_factor": "narrow"
          }
        ]
      }
    }),
    viteCompression({
      // 压缩
      verbose: true,
      disable: false,
      threshold: 10240,
      algorithm: "gzip",
      ext: ".gz"
    }),
    createSvgIconsPlugin({
      iconDirs: [path.resolve(process.cwd(), "src/assets/svg")],
      symbolId: "icon-[dir]-[name]"
    })
  ],
  server: {
    host: "0.0.0.0"
  },
  css: {
    postcss: {
      plugins: [
        tailwindcss,
        autoprefixer
      ]
    }
  },
  build: {
    rollupOptions: {
      // 打包后文件名不哈希化
      output: {
        entryFileNames: `[name].js`,
        chunkFileNames: `module/[name].js`,
        assetFileNames: `assets/[name].[ext]`
      }
    }
  }
  // 生产环境启动
  // esbuild: { // 去除console和debugger
  //   drop: ['console', 'debugger']
  // },
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFx0ZXRyaXN2M1xcXFx0ZXRyaXMtdjNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkU6XFxcXHRldHJpc3YzXFxcXHRldHJpcy12M1xcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRTovdGV0cmlzdjMvdGV0cmlzLXYzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1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gICAgIENvbXBvbmVudHMoe1xyXG4gICAgICAgICAgICByZXNvbHZlcnM6IFtFbGVtZW50UGx1c1Jlc29sdmVyKCldXHJcbiAgICAgICAgfSksXHJcbiAgICAgICAgVml0ZVBXQSh7XHJcbiAgICAgICAgICAgIHJlZ2lzdGVyVHlwZTogJ2F1dG9VcGRhdGUnLFxyXG4gICAgICAgICAgICBkZXZPcHRpb25zOiB7XHJcbiAgICAgICAgICAgICAgICBlbmFibGVkOiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgdHlwZTogJ21vZHVsZSdcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgd29ya2JveDoge1xyXG4gICAgICAgICAgICAgICAgcnVudGltZUNhY2hpbmc6IFtcclxuICAgICAgICAgICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHVybFBhdHRlcm46IC8uKi8sXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGhhbmRsZXI6ICdTdGFsZVdoaWxlUmV2YWxpZGF0ZSdcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICBdLFxyXG4gICAgICAgICAgICAgICAgbWF4aW11bUZpbGVTaXplVG9DYWNoZUluQnl0ZXM6IDQgKiAxMDI0ICogMTAyNCAvLyBcdTk3MDBcdTg5ODFcdTdGMTNcdTVCNThcdTc2ODRcdTY3MDBcdTU5MjdcdTY1ODdcdTRFRjZcdTU5MjdcdTVDMEZcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgbWFuaWZlc3Q6IHtcclxuICAgICAgICAgICAgICAgIFwibmFtZVwiOiBcIlRldHJpcyBWM1wiLFxyXG4gICAgICAgICAgICAgICAgXCJzaG9ydF9uYW1lXCI6IFwiVGV0cmlzIFYzXCIsXHJcbiAgICAgICAgICAgICAgICBcImRlc2NyaXB0aW9uXCI6IFwiQSBUZXRyaXMgZ2FtZSwgcnVubmluZyBvbiB0aGUgd2ViLCByZXNwb25zaXZlIGFuZCBpbnN0YWxsYWJsZS5cIixcclxuICAgICAgICAgICAgICAgIFwiZGlzcGxheVwiOiBcInN0YW5kYWxvbmVcIixcclxuICAgICAgICAgICAgICAgIFwidGhlbWVfY29sb3JcIjogXCIjMTExXCIsXHJcbiAgICAgICAgICAgICAgICBcInN0YXJ0X3VybFwiOiBcIi9cIixcclxuICAgICAgICAgICAgICAgIFwiaWNvbnNcIjogW1xyXG4gICAgICAgICAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgXCJzcmNcIjogXCIvaWNvbi5wbmdcIixcclxuICAgICAgICAgICAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiaW1hZ2UvcG5nXCIsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFwic2l6ZXNcIjogXCIxNzF4MTcxXCJcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICBdLFxyXG4gICAgICAgICAgICAgICAgXCJvcmllbnRhdGlvblwiOiBcImFueVwiLFxyXG4gICAgICAgICAgICAgICAgXCJiYWNrZ3JvdW5kX2NvbG9yXCI6IFwiI2ZmZlwiLFxyXG4gICAgICAgICAgICAgICAgXCJsYW5nXCI6IFwiZW5cIixcclxuICAgICAgICAgICAgICAgIFwiY2F0ZWdvcmllc1wiOiBbXHJcbiAgICAgICAgICAgICAgICAgICAgXCJnYW1lXCJcclxuICAgICAgICAgICAgICAgIF0sXHJcbiAgICAgICAgICAgICAgICBcInNjcmVlbnNob3RzXCI6IFtcclxuICAgICAgICAgICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFwic3JjXCI6IFwiL3Nzc2FtcGxlLmpwZ1wiLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBcInR5cGVcIjogXCJpbWFnZS9qcGdcIixcclxuICAgICAgICAgICAgICAgICAgICAgICAgXCJzaXplc1wiOiBcIjQxNHg3MzZcIixcclxuICAgICAgICAgICAgICAgICAgICAgICAgXCJmb3JtX2ZhY3RvclwiOiBcIm5hcnJvd1wiXHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgXVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSksXHJcbiAgICAgICAgdml0ZUNvbXByZXNzaW9uKHsgLy8gXHU1MzhCXHU3RjI5XHJcbiAgICAgICAgICAgIHZlcmJvc2U6IHRydWUsXHJcbiAgICAgICAgICAgIGRpc2FibGU6IGZhbHNlLFxyXG4gICAgICAgICAgICB0aHJlc2hvbGQ6IDEwMjQwLFxyXG4gICAgICAgICAgICBhbGdvcml0aG06ICdnemlwJyxcclxuICAgICAgICAgICAgZXh0OiAnLmd6JyxcclxuICAgICAgICB9KSxcclxuICAgICAgICBjcmVhdGVTdmdJY29uc1BsdWdpbih7XHJcbiAgICAgICAgICAgIGljb25EaXJzOiBbcGF0aC5yZXNvbHZlKHByb2Nlc3MuY3dkKCksICdzcmMvYXNzZXRzL3N2ZycpXSxcclxuICAgICAgICAgICAgc3ltYm9sSWQ6ICdpY29uLVtkaXJdLVtuYW1lXScsXHJcbiAgICAgICAgfSksXHJcbiAgICBdLFxyXG4gICAgc2VydmVyOiB7XHJcbiAgICAgICAgaG9zdDogJzAuMC4wLjAnXHJcbiAgICB9LFxyXG4gICAgY3NzOiB7XHJcbiAgICAgICAgcG9zdGNzczoge1xyXG4gICAgICAgICAgICBwbHVnaW5zOiBbXHJcbiAgICAgICAgICAgICAgICB0YWlsd2luZGNzcyxcclxuICAgICAgICAgICAgICAgIGF1dG9wcmVmaXhlclxyXG4gICAgICAgICAgICBdXHJcbiAgICAgICAgfVxyXG4gICAgfSxcclxuICAgIGJ1aWxkOiB7XHJcbiAgICAgICAgcm9sbHVwT3B0aW9uczogeyAvLyBcdTYyNTNcdTUzMDVcdTU0MEVcdTY1ODdcdTRFRjZcdTU0MERcdTRFMERcdTU0QzhcdTVFMENcdTUzMTZcclxuICAgICAgICAgICAgb3V0cHV0OiB7XHJcbiAgICAgICAgICAgICAgICBlbnRy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